/**
*@Author: QWP
*@Description: 其他的共享数据
*@Date 2023-08-14 14:58
*/
import { defineStore } from 'pinia'

interface LoginState {
  params: object, 
}

export const useOtherStore = defineStore('otherStore', {
  state: (): LoginState => {
    return {
      params: {}, 
    }
  },
  actions: {
    setParams(data: object) {
      this.params = data
      setTimeout(() => this.params = {}, 1000)
    },
  },
  persist: true,
})